<?php
class pfCollection /*Iterator*/{

	const METHOD_POST = 'post';
	const METHOD_GET  = 'get';

	private $fields = array();

	private $method = self::METHOD_POST;

	/**
	 * Enter description here...
	 *
	 * @param string $method
	 */
	public function setMethod($method) {
		$this->method = $method;
	}

	/**
	 * Enter description here...
	 *
	 * @param pfFieldDefinition $field
	 */
	public function addField(pfFieldDefinition $field) {
		$this->fields[$field->getName()] = $field;
	}

	/**
	 * Enter description here...
	 *
	 * @return array
	 */
	public function getFields() {
		return $this->fields;
	}
}